<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图书列表</title>
<link href="styles/basic.css" rel="stylesheet" type="text/css" />
<link href="styles/member_message.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="member">
<div id='member_main'>
<h2>添加图书</h2>
  <form action="tianjia.php" name='wish' method="post">
      <table cellspacing="1">
      
	<tr>    
            <th>书名</th><td><input type='text' name="text"/></td>
	</tr>
	<tr>
		<th>类别</th><td>
                    <input type='radio' name="radio" value="纸书"/>纸书　　　
                    <input type='radio' name="radio" value="电子书"/>电子书
		</td>
	<tr/>
	<tr>
            <th>价格</th><td><input type='text' name="j" /></td>
	<tr/>
	<tr>
            <th>作者</th><td><input type='text' name="k"/></td>
	</tr>
	<tr>
            <th>出版社</th><td><input type='text' name="l"/></td>
	</tr>
	<tr>
		<td colspan='2' style='text-align:center;'>
			<input class='btn' type='submit' value='添加图书' />
		</td>
	</tr>
      
</table>
</form>
<h2>图书列表</h2>
  <table cellspacing="1">
  <tr>
    <th>书名</th>
    <th>类别</th>
    <th>价格</th>
    <th>作者</th>
    <th>出版社</th>
	<th>删除</th>
  </tr>
  <?php  foreach($rows as $key){   ?>
  <tr>    
    <td><?php echo $key['tushu'] ?></td>
    <td><?php echo $key['lei'] ?></td>
    <td><?php echo $key['jg'] ?></td>
    <td><?php echo $key['zz'] ?></td>
	<td><?php echo $key['zbs'] ?></td>
        <td><a  class='close' href="javascript:" onclick="if(confirm('确定删除吗？')) location.href='bbsDel.php?id=<?php echo $key["id"] ?>'">删除</a></td>
  </tr>
  <?php } ?>
</table>
</div>
</div>
</body>
</html>
